import HomePage from '@/views/homePage';
import Message from '@/views/message';
import Account from '@/views/profile/account';
/***
 * 栈路由
 */

import Layout from '@/views/layout';
import Login from '@/views/login';
import Register from '@/views/login/register';
import PwdChange from '@/views/profile/pwdChange';

import PwdForget from '@/views/profile/pwdForget';
import Setting from '@/views/setting/setting';
import Version from '@/views/setting/version';
import Language from '@/views/setting/language';

import ProessCenter from '@/views/process/index';
import myToDone from '@/views/process/toDone';
import ProessForm from '@/views/process/form';
import myApply from '@/views/process/myApply';
import myDone from '@/views/process/myDone';
import myDraf from '@/views/process/myDraf';
// import AppSetting from '@/views/setting/appSetting'

/***
 * tabbar 路由配置
 */
export const tarbar: Array<ROUTECONFIG.TarbarType> = [
  {
    // 消息
    name: 'message',
    component: Message,
    tarbarLabel: 'sys_message',
    iconName: 'message-square',
  },

  {
    //首页
    name: 'home',
    component: HomePage,
    tarbarLabel: 'sys_homePage',
    iconName: 'home',
  },

  {
    //系统管理
    name: 'system',
    component: Account,
    tarbarLabel: 'sys_my',
    iconName: 'user',
  },
];

/****
 * 栈路由配置
 *
 */

export const stackRoutes: Array<ROUTECONFIG.StackRouteType> = [
  {
    name: 'Login',
    component: Login,
    labelName: 'sys_login',
  },
  {
    name: 'Register',
    component: Register,
    labelName: 'sys_register',
  },
  {
    name: 'Layout',
    component: Layout,
    labelName: '',
  },

  {
    name: 'PwdForget',
    component: PwdForget,
    labelName: 'sys_forgetPassword',
  },

  {
    name: 'PwdChange',
    component: PwdChange,
    labelName: 'sys_editPassword',
  },
  {
    name: 'Setting',
    component: Setting,
    labelName: 'sys_setting',
  },
  {
    name: 'Language',
    component: Language,
    labelName: 'sys_languageSetting',
  },
  {
    name: 'Version',
    component: Version,
    labelName: 'sys_appInfo',
  },
  {
    name: 'ProessCenter',
    component: ProessCenter,
    labelName: 'sys_processCenter'
  },
  {
    name: 'myToDone',
    component: myToDone,
    labelName: 'sys_myToDone'
  },
  {
    name: 'myApply',
    component: myApply,
    labelName: 'sys_myApply'
  },
  {
    name: 'myDone',
    component: myDone,
    labelName: 'sys_myDone'
  },
  {
    name: 'myDraf',
    component: myDraf,
    labelName: 'sys_myDraft'
  },
  {
    name: 'ProessForm',
    component: ProessForm,
    labelName: '表单'
  },
];
